package com.design.pattern.responsibility;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author goujian
 * @description: 一级部门审批
 * @date 2022/3/16 2:14 下午
 */
@Slf4j
@Component
public class FristClassApprover extends AbstractApprover{

    @Override
    void handle(RequestParam requestParam) {
        if (requestParam.getAmount() <= ApproveTypeEnmu.SMALL.getMax()
                && requestParam.getAmount() >= ApproveTypeEnmu.SMALL.getMin()) {
            log.info("请求金额:{},一级部门审批", requestParam.getAmount());
        }
    }
}
